<extend name="Public/base"/>
<block name="body">
<form class="well form-inline " method="get" action="{:U("")}">

<div class="form-group">
   
               
    
     <input type="text" class="input-mini" name="keyword" style="width:200px;" value="{$keyword}" placeholder="会员名">
  </div>
  <div class="form-group">
  <button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
												<i class="icon-search bigger-110"></i>

												
											</button>
                                            <if condition="$keyword">
                                            <a  data-toggle="tooltip" title="清除搜索项"  href="{:U(index)}" class="tooltip-danger btn btn-xs btn-danger"><i class="icon-remove bigger-110"></i></a></if>
  </div>
    
  </form>



   <form method="post" class="form-horizontal J_ajaxForm"  action="{:U("")}">
      <div class="table_list">
        <table width="100%" cellspacing="0" class="table table-hover">
      <thead>
        <tr>
          <th width="30">ID</th>
          <th align="left">名称</th>

     <th align="left">类型</th>
          <th align="left">创建时间</th>
          <th align="left">最后登录时间</th>
          <th align="left">最后登录IP</th>
           <th align="left">Email验证</th>  <th align="left">状态</th>
            <th align="left">审核</th>
          <th width="200">管理操作</th>
        </tr>
      </thead>
      <tbody>
        <foreach name="_list" item="vo">
        <tr>
          <td>{$vo.id}</td>
          <td>{$vo.name}</td>

           <td>{:F("Group")[$vo[group]][name]} </td>
            <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
              <td>{$vo.last_login_time|date="Y-m-d H:i:s",###}</td>
     <td>{$vo.last_login_ip}</td>
     
        <td>  <if condition="$vo[email_status] eq 1">
        <a href="{:U("changestatusemail",array("id"=>$vo['id']))}" class="ajax-switch"> <i class="icon-check-circle"></i></a>
         <else/>
         <a href="{:U("changestatusemail",array("id"=>$vo['id']))}"  class="ajax-switch"><i class="icon-times-circle"></i></a>
         </if></td>
         
            <td>  <if condition="$vo[status] eq 1">
        <a href="{:U("changestatus",array("id"=>$vo['id']))}" class="ajax-switch"> <i class="icon-check-circle"></i></a>
         <else/>
         <a href="{:U("changestatus",array("id"=>$vo['id']))}"  class="ajax-switch"><i class="icon-times-circle"></i></a>
         </if></td>

            <td>  <if condition="$vo[shenhe] eq 1">
                <a href="{:U("change",array("id"=>$vo['id'],"field"=>'shenhe',"value"=>0))}" class="ajax-switch"> <i class="icon-check-circle"></i></a>
                <else/>
                <a href="{:U("change",array("id"=>$vo['id'],"field"=>'shenhe',"value"=>1))}"  class="ajax-switch"><i class="icon-times-circle"></i></a>
            </if></td>
     
          <td  class="text-c">
        
         <a href="{:U('edit',array('id'=>$vo['id']))}">查看</a>
          </if>
          </td>
        </tr>
        </foreach>
      </tbody>
    </table>
      </div>
       <div class="pagination" style="margin:auto; display:block">{$Page}</div>
    </form>


</block>




